#!/bin/bash

correct=1;

for f in tests/correct/*.c;
do
	./ciscal $f 2> /dev/null;
	if [ $? = 0 ]; then
		echo testing $f : PASS;
	else
		correct=0;
		echo testing $f : FAIL \($?\);
	fi
done

if [ $correct = 1 ]; then
	echo -------------------------
	echo 		PASS
	echo -------------------------
else
	echo -------------------------
	echo 		FAIL
	echo -------------------------
fi
	
